package com.xucy.springboot.annotationaop.AspectAop1;

import com.xucy.springboot.entity.ResultMsg;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author xucy
 * @Date 2019-08-05 11:14
 * @Description
 **/

@RestController
@RequestMapping("/testAopCon1")
public class TestAopController {

    @RequestMapping(value = "test",method = RequestMethod.POST)
    public ResultMsg test( @RequestBody @SqlAnnotation(value = "SIFC_BDMP_BATCH_GRANT") BatchGrant batchGrant,Info info){
        try{

        }catch (Exception e){
            System.out.println("抛出异常了");
        }
        ResultMsg resultMsg=new ResultMsg();



        return resultMsg;
    }
}
